package org.csu.gp_store.service.impl;

import org.csu.gp_store.entity.Category;
import org.csu.gp_store.mapper.CategoryMapper;
import org.csu.gp_store.service.CategoryService;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public Category getCategoryByCategoryID(@NotNull Long categoryID) {
        return null;
    }

    @Override
    public List<Category> getCategoryList() {
        return categoryMapper.selectList(null);
    }
}
